 //***********************************************************************
 // CountFlip.java                    Author:20172323wyh
 //
 // Flip a coin 100 times and static the quantity of the head side.
 //***********************************************************************
 public class CountFlip
 {
    public static void main(String[] args)
    {
       int i = 0, heads = 0, tails = 0;
       Coin fuckcoin = new Coin();
       
       while (i < 100)
       {
          fuckcoin.flip();
          if (fuckcoin.isHeads())
          heads++;
          else
          tails++;
     
          i++;
       }

       System.out.println("Heads: " + heads + "\n" + "Tails: " + tails + "\n" + "TotalTimes: " + i);
    }
 }
